.class public abstract Lcom/brixd/niceapp/callback/BaseDetailShareCallback;
.super Ljava/lang/Object;
.source "BaseDetailShareCallback.java"

# interfaces
.implements Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;


# instance fields
.field protected mContext:Landroid/content/Context;

.field private totalSize:I


# direct methods
.method protected constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 15
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 19
    const/16 v0, 0x8c

    iput v0, p0, Lcom/brixd/niceapp/callback/BaseDetailShareCallback;->totalSize:I

    .line 16
    iput-object p1, p0, Lcom/brixd/niceapp/callback/BaseDetailShareCallback;->mContext:Landroid/content/Context;

    .line 17
    return-void
.end method


# virtual methods
.method protected getAcceptQZoneSize(Ljava/lang/String;)I
    .registers 4
    .param p1, "theme"    # Ljava/lang/String;

    .prologue
    .line 32
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    .line 33
    .local v0, "qzoneSize":I
    rsub-int/lit8 v1, v0, 0x3c

    add-int/lit8 v1, v1, -0x1

    return v1
.end method

.method protected getAcceptSinaWeiboSize(Ljava/lang/String;)I
    .registers 5
    .param p1, "theme"    # Ljava/lang/String;

    .prologue
    .line 22
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " @\u6700\u7f8e\u5e94\u7528\u5b98\u65b9\u5fae\u535a"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v0, v1, 0x16

    .line 23
    .local v0, "sinaWeiboSize":I
    iget v1, p0, Lcom/brixd/niceapp/callback/BaseDetailShareCallback;->totalSize:I

    sub-int/2addr v1, v0

    add-int/lit8 v1, v1, -0x1

    return v1
.end method

.method protected getAcceptTxWeiboSize(Ljava/lang/String;)I
    .registers 5
    .param p1, "theme"    # Ljava/lang/String;

    .prologue
    .line 27
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " @nice-app"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v0, v1, 0x16

    .line 28
    .local v0, "txWeiboSize":I
    iget v1, p0, Lcom/brixd/niceapp/callback/BaseDetailShareCallback;->totalSize:I

    sub-int/2addr v1, v0

    add-int/lit8 v1, v1, -0x1

    return v1
.end method

.method protected traceEvent(Ljava/lang/String;Ljava/lang/String;I)V
    .registers 8
    .param p1, "event"    # Ljava/lang/String;
    .param p2, "articleTitle"    # Ljava/lang/String;
    .param p3, "articleId"    # I

    .prologue
    .line 37
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 38
    .local v0, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v1, "ArticleName"

    invoke-virtual {v0, v1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 39
    const-string v1, "ArticleId"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 40
    iget-object v1, p0, Lcom/brixd/niceapp/callback/BaseDetailShareCallback;->mContext:Landroid/content/Context;

    invoke-static {v1, p1, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/util/Map;)V

    .line 41
    return-void
.end method
